import request from "@/network/request";

export function login(username, password) {
  return request({
    url: '/admin/login',
    method: 'post',
    data: {
      username,
      password
    }
  })
}

export function addAdmin(adminName, adminAccount, adminPassword, adminRole) {
  return request({
    url: '/admin',
    method: 'post',
    data: {
      adminName,
      adminAccount,
      adminPassword,
      adminRole
    }
  })
}
